#ifndef  _AS5600_H
#define  _AS5600_H


extern volatile float last_angle;
extern volatile float this_angle;
extern volatile float full_rotations;// 圈数
extern volatile float last_full_rotations;//上一次的圈数
extern volatile float now_speed;
extern volatile float last_speed;
extern volatile float sum_angle;
extern volatile float real_speed;

float Get_AS5600_Angle(void);
float Get_Sum_Angle();
void UpDate_Data();// 更新角度
float Get_Speed();
float Low_Pass_Filter(float speed);


#endif